package main

import "fmt"

func main() {
	c := make(chan int, 10)
	for i := 0; i < 10; i++ {
		if i == 5 {
			close(c)
		}
		if i < 5 {
			c <- i
		}
	}

	for i := 0; i < 100; i++ {
		v, ok := <-c
		if !ok {
			break
		}
		fmt.Println(v)
	}
}

type Test struct {
	Name string
}

func (t Test) test(Person) (i int, m string) {
	i = 1
	m = "test"
	return
}

type Person interface {
}

type Student interface {
	test(Person) (Person, error)
}
